package com.itheima.stock.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author: siwukun
 * @date: 2022/06/05
 * @description:
 */
@Configuration
public class RestTemplateConfig {

    /**
     * RestTemplate 第三方数据拉取模板工具
     * @return
     */
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
